package util;

import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
import org.springframework.core.type.filter.TypeFilter;

import java.io.IOException;

/**
 * 对自定义扫描到的所有类放行
 * 自定义 可以自定义注解  也可以什么也不写 判断条件如下
 * 用法
 * @ComponentScan(basePackages = {"ig.zeus.rbac.domain.service.basis"},
 *  includeFilters = {@Filter(type = FilterType.CUSTOM, classes = MyTypeFilter.class)})
 */
public class MyTypeFilter implements TypeFilter {

	@Override
	public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
			throws IOException {
		// TODO Auto-generated method stub
		return true;
	}

}
